package fetchDangdangComment;

public class Comment {
	private String title;
	private String content;
	private String dateTime;
	
	public Comment(){
	}
	public Comment(String title , String content ,String dateTime){
		this.title = title;
		this.content = content;
		this.dateTime = dateTime;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getDateTime() {
		return dateTime;
	}
	public void setDateTime(String dateTime) {
		this.dateTime = dateTime;
	}
	@Override
	public String toString(){
		return "\nTITLE : "+title
				+"\nTIME : "+dateTime
				+"\nCONTENT : "+content
				+"\n------------------------------------";
	}
	public boolean isEmptyTitle(){
		return (null == title) || ("".equals(title));
	}
	public boolean isEmptyContent(){
		return (null == content) || ("".equals(content));
	}

}
